package graphics.screens;

import graphics.BootColor;

import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Graphics;

import tool.ScreenUtils;
import boot.Genres;

public class ShakerScreen extends Canvas implements CommandListener {

	private static final int Y_MARGIN = 50;
	private static final int X_MARGIN = 10;

	private static final String[] GENRES = new String[] { Genres.CALME,
			Genres.GOOD, Genres.ENERGIE, Genres.HIP_HOP };

	public ShakerScreen() {

	}

	protected void paint(Graphics g) {
		ScreenUtils.setBlackBackground(g);
		int fontHeight = g.getFont().getHeight();
		g.setColor(BootColor.WHITE);
		
		int i = 0;
		
		g.drawString((i + 1) + " " + Genres.CALME, X_MARGIN, Y_MARGIN
				* fontHeight, Graphics.TOP | Graphics.LEFT);
		drawSquares(g, i++);
		g.drawString((i + 1) + " " + Genres.GOOD, X_MARGIN, Y_MARGIN + i++
				* fontHeight, Graphics.TOP | Graphics.LEFT);
		g.drawString((i + 1) + " " + Genres.ENERGIE, X_MARGIN, Y_MARGIN + i++
				* fontHeight, Graphics.TOP | Graphics.LEFT);
		g.drawString((i + 1) + " " + Genres.HIP_HOP, X_MARGIN, Y_MARGIN + i++
				* fontHeight, Graphics.TOP | Graphics.LEFT);

	}

	private void drawSquares(Graphics g, int i) {
		// TODO Auto-generated method stub

	}

	public void commandAction(Command arg0, Displayable arg1) {
		// TODO Auto-generated method stub

	}

}
